﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MauiControl.Models
{
    public class BleDeviceInfo
    {
        public string DeviceName { get; set; }
        public string DeviceAddress { get; set; } // 统一使用字符串形式的设备地址
        public string DeviceMacAddress { get; set; } // 格式化后的 MAC 地址
        public string PlatformSpecificId { get; set; } // 平台特定的设备标识符（Windows: MAC 地址, MacCatalyst/iOS: UUID）

        public BleDeviceInfo(string name, string address, string macAddress, string platformSpecificId)
        {
            DeviceName = name;
            DeviceAddress = address;
            DeviceMacAddress = macAddress;
            PlatformSpecificId = platformSpecificId;
            BatteryLevel = "N/A"; // 默认值
        }

        public string BatteryLevel { get; set; } // 电池电量
    }
}
